@extends('member.member')

@section('title', '我的考试')

@section('rightcontainer')
<div class="my_exam" class="member-container">
    <div class='ent_zhph ent3 mb-0' style="border:1px solid #ececec;">
    	<ul class="mem_cate clearfix">
    		<li class='firt-li'>排序方法:</li>
    		<li>
    			<a href='/member/exam?sort=0' class="@if($sort == 0) ent-bgcolor @endif">考试时间</a>
    		</li>
    		<li>
    			<a href='/member/exam?sort=1' class="@if($sort == 1) ent-bgcolor @endif">分数</a>
    		</li>
    	</ul>
    </div>
	<table  class="exam_table">
		<tr>
			<td width="25%">考试名称</td>
			<td width="15%">职位名称</td>
			<td width="15%">公司名称</td>
			<td width="15%">分数</td>
			<td width="15%">时间</td>
			{{--<td>操作</td>--}}
		</tr>
		@foreach($result as $res)
		<tr id="news_{{ $res->id }}">
			<td>{{$res->exam->name}}</td>
			<td>{{count($res->jobs)>0?$res->jobs->title:'系统考试'}}</td>
			<td>{{count($res->company)>0?$res->company->name:'系统考试'}}</td>
			<td>{{$res->score}}</td>
			<td>{{$res->ehtime}}</td>
			{{--<td>
                <a href="javascript:void(0)" onclick="delete_one('/member/exam/{{$res->id}}','{{$res->id}}','{{csrf_token()}}')">
                    <img src="{{ asset('/images/front//member/trash.png')}}">
                </a>
			</td>--}}
		</tr>
		@endforeach
	</table>
	<div class="paginate">{!! $result->render() !!} </div>
</div>
@stop

<!-- 底部块 -->
@section('footer')
    @parent
@stop

